let mongoose = require('./db')
let StudentSchema = new mongoose.Schema({
    name:String,
    number:Number,
})
let TitleSchema = new mongoose.Schema({
    Title:String,
    Time:{
        type:Date,
        default:(new Date()).getTime(),
    },
    studentID:{
        type:mongoose.Types.ObjectId,
        ref:"student",
    },
})

let studentModul = mongoose.model("student",StudentSchema)
let TitleModul = mongoose.model("Title",TitleSchema)

module.exports={studentModul,TitleModul}